<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="id" lang="id">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
	<html:form action="/recommendedCandidate.do">
	<div class="outerbox">
		<div class="mainHeading">
			<div class=""
				style="width: 360px; height: 32px; background: url(images/formTitleBackground.png) no-repeat top right; font-color: #CC0000;">
				<h2 class="formTitle">REC. CANDIDATES</h2>
			</div>
		</div>
	</div>

	<!--   ==================================== TABLE ======================================    -->

	<div class="outerbox"> 
			<div class="actionbar_table">
				<div class="formbuttons">
						Found&nbsp;<bean:write name="recommendedCandidate" property="totalItems"/>&nbsp;potential candidate(s) &nbsp;for&nbsp;<bean:write name="recommendedCandidate" property="vacancyName"/>.
				</div>

				<br class="clear" />
			</div>
			<br class="clear" />

			<div id="helpText" class="helpText"></div>

			<table
				style="border-collapse: collapse; width: 100%; text-align: left;"
				class="data-table">
				<colgroup align="right">
					<col width="1%" />
					<col width="2%" />
					<col width="12%" />
					<col width="13%" />
					<col width="12%" />
					<col width="10%" />
					<col width="10%" />
					<col width="10%" />
					<col width="10%" />
					<col width="10%" />
					<col width="7%" />
				</colgroup>

				<thead>
					<tr>
						<th rowspan="1"></th>
						<th style="text-align: left; color: white;" rowspan="1">No.</th>
						<th style="text-align: left" rowspan="1"><a href="recommendedCandidate.do?sort=name" title="Sort by Full Name" class="null">Full Name</a></th>
						<th style="text-align: left" rowspan="1"><a href="recommendedCandidate.do?sort=email" title="Sort by Email" class="null">Email</a></th>
						<th style="text-align: left" rowspan="1"><a href="recommendedCandidate.do?sort=contactNumber" title="Sort by Contact number" class="null">Contact Number</a></th>
						<th style="text-align: left" rowspan="1"><a href="recommendedCandidate.do?sort=eduScore" title="Sort by Education Score" class="null">Education Score</a></th>
						<th style="text-align: left" rowspan="1"><a href="recommendedCandidate.do?sort=langScore" title="Sort by Language Score" class="null">Language Score</a></th>
						<th style="text-align: left" rowspan="1"><a href="recommendedCandidate.do?sort=skillScore" title="Sort by Skill Score" class="null">Skill Score</a></th>
						<th style="text-align: left" rowspan="1"><a href="recommendedCandidate.do?sort=licenseScore" title="Sort by License Score" class="null">License Score</a></th>
						<th style="text-align: left" rowspan="1"><a href="recommendedCandidate.do?sort=score" title="Sort by Total Score" class="null">Total Score</a></th>
						<th style="text-align: left; color: white;" rowspan="1">Interview</th>
					</tr>
				</thead>

				<tbody>					
					<logic:iterate id="allCandidates" name="recommendedCandidate" property="allCandidates" scope="session" indexId="counter">
						<tr class='<%= counter.intValue()%2 == 0 ? "even" : "odd" %>' >
							<logic:equal name="recommendedCandidate" value="true" property="canDelete">
								<td class="left"><html:checkbox styleClass="tableCheckBox" onclick="disableCheckAll()" name="allCandidates" property="isSelected" indexed="true"/></td>
							</logic:equal>
							<logic:notEqual name="recommendedCandidate" value="true" property="canDelete">
								<td class="left"></td>
							</logic:notEqual>
							<td class="left"><%= counter.intValue() + 1 %></td>
							<td class="left"><a href="candidateUpdate.do?id=<bean:write name="allCandidates" property="id"/>"><bean:write name="allCandidates" property="name"/></a></td>
							<td class="left"><bean:write name="allCandidates" property="email"/></td>
							<td class="left"><bean:write name="allCandidates" property="contactNumber"/></td>
							<td class="left"><bean:write name="allCandidates" property="eduScore"/></td>
							<td class="left"><bean:write name="allCandidates" property="langScore"/></td>
							<td class="left"><bean:write name="allCandidates" property="skillScore"/></td>
							<td class="left"><bean:write name="allCandidates" property="licenseScore"/></td>
							<td class="left"><bean:write name="allCandidates" property="score"/></td>
							<td class="left"><a href="javascript:openPopup('interviewUpdate.do?act=add&canId=<bean:write name="allCandidates" property="id"/>&vacId=<bean:write name="allCandidates" property="vacId"/>','Create Interview','520px','500px')">Create</a></td>
						</tr>
					</logic:iterate>
				</tbody>
			</table>
	</div>
	</html:form>
</body>
</html>